#ifndef EXECUTOR_H
#define EXECUTOR_H

#include <QObject>
#include <QVariantMap>
#include <QString>
#include <QDir>
#include <QFile>
#include <QDebug>


class Executor : public QObject
{
    Q_OBJECT
private:
    QDir *links;

    QDir *initDir(const QString &path);
    void run(const QString &command);

public:
    explicit Executor(QObject *parent = nullptr);
    ~Executor();

    bool execute(const QString &command);
    void absoluteExecute(const QString &path);
    void reload();
    QString linksDir();
    QStringList linkList;

signals:
    void executeInnerAction(const QString &command);
};

#endif // EXECUTOR_H
